package com.hui.service;

import com.hui.dao.AdminDao;
import com.hui.entity.User;
import com.hui.service.AdminService;
import com.hui.util.DaoFactory;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: 李昭辉
 * @Date: 2021/06/19/16:08
 * @Description:
 */
public class AdminServiceImpl implements AdminService {
    private AdminDao adminDao = DaoFactory.getAdminDao();

    @Override
    public boolean adminLogin(User user) {
        return adminDao.adminExist(user);
    }
}
